<?php print formx();?>
	<table class="x">
		<tr>
			<th>
				Account
			</th>
			<th>
				Information
			</th>
		</tr>
		<?php if (is_array($this->v('social'))) foreach ($this->v('social') AS $k=>$v):?>
		<tr>
			<td>
				<label for="<?php print $k;?>">
				<b><?php print ucfirst($k);?></b><br/>
				<span class="small"><?php print $v;?></span>
				</label>
			</td>
			<td>
				<?php print input('text',$k,$this->v('data',$k));?>
			</td>
		</tr>
		<?php endforeach;?>
	</table>
<?php print submit('Update').form(true);?>
	
	<h2>Reset the information</h2>
	<p>Click on the button below if you want to reset the social information.</p>
<?php 
	print formx('Are you sure you want to reset your social information?').
		input('hidden','_reset_',true).
		submit('Reset',null,array('key'=>'r')).
	form(true);
?>